@extends('admin.layout.index')


@section('content')
	<div class="col-md-6" >
      <!--   Kitchen Sink -->
        <div class="card">
            <div class="card-action">
                用户申请店铺详细信息
            </div>
            <div class="card-content">
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                            <tr>
                                <th colspan="4" style="line-height:40px;color:#333;background-color:#ccc;text-align:center">用户申请店铺详情表</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>姓名：</td>
                                <td colspan="3">{{ $data['uname'] }}</td>
                            </tr>
                           	<tr>
                                <td>手机号：</td>
                                <td colspan="3">{{ $data['phone'] }}</td>
                            </tr>
                            <tr>
                                <td>邮箱：</td>
                                <td colspan="3">{{ $data['email'] }}</td>
                            </tr>
                            <tr>
                                <td>店铺名称：</td>
                                <td colspan="3">{{ $data['name'] }}</td>
                            </tr>
                            <tr>
                                <td>店铺状态：</td>
                                <td colspan="3">
                                    @if($data['state'] == 1 || $data['state'] == 3 )
                                        @if($data['status'] == 0)店铺开启中@elseif($data['status'] == 1)店铺关闭中@endif
                                    @endif
                                </td>
                            </tr>
                            <tr>
                                <td>店铺类型：</td>
                                <td colspan="3">{{ $data['type'] }}</td>
                            </tr>
                            <tr>
                                <td>店铺地址：</td>
                                <td colspan="3">{{ $data['address'] }}</td>
                            </tr>
                        </tbody>
                    </table>
                    <form method="post" action="/admin/examine/update">
                        {{ csrf_field() }}
                        <input type="hidden" name="id" value="{{ $data['id'] }}">
                            <div class="input-field col s6" style="margin-left:25%">　
                                @if($data['state'] == 0)
                                <button type="submit" value="1" name="state" class="btn btn-info"> 同意</button>　
                                <button type="submit" value="4" name="state" class="btn btn-danger"> 不同意</button>
                                @elseif($data['state'] == 1 || $data['state'] == 3 )
                                <button type="submit" value="2" name="state" class="btn btn-danger"> 禁用</button>
                                @elseif($data['state'] == 2)
                                <button type="submit" value="3" name="state" class="btn btn-info"> 开启</button>
                                @else($data['state'] == 4)
                                <span style="color:red;size:16px">已拒绝</span>
                                @endif
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
         <!-- End  Kitchen Sink -->
    </div>
@endsection